<!--#
layout("/layouts/platform.html"){
#-->
<header class="header navbar bg-white shadow">
    <div class="btn-group tool-button">
        <a class="btn btn-primary navbar-btn" href="${base}/platform/order/return" id="goBack" data-pjax><i class="ti-angle-left"></i>${msg['globals.button.back']}</a>
    </div>
</header>

<div class="content-wrap">
    <div class="wrapper" style="min-height:500px;">
        <section class="panel panel-form">
            <form id="editForm" role="form" class="form-horizontal parsley-form" data-parsley-validate
                  action="${base}/platform/order/return/editDo" method="post">
                <input name="id" type="hidden" value="${obj.id}">
                <div class="row mb10 mt10">
                    <div class="col-lg-12">
                        <div class="form-group">
                            <label for="sendType" class="col-sm-2 control-label">${msg['order.return.column.sendType']}</label>
                            <div class="col-sm-8">
                                <input type="text" id="sendType" class="form-control" name="sendType" data-parsley-required="true"
                                       placeholder="${msg['order.return.column.sendType']}" value="${obj.sendType}" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="sendMoney" class="col-sm-2 control-label">${msg['order.return.column.sendMoney']}</label>
                            <div class="col-sm-8">
                                <input type="text" id="sendMoney" class="form-control" name="sendMoney" data-parsley-required="true"
                                       placeholder="${msg['order.return.column.sendMoney']}" value="${obj.sendMoney}" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="expressId" class="col-sm-2 control-label">${msg['order.return.column.expressId']}</label>
                            <div class="col-sm-8">
                                <input type="text" id="expressId" class="form-control" name="expressId" data-parsley-required="true"
                                       placeholder="${msg['order.return.column.expressId']}" value="${obj.expressId}" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="expressName" class="col-sm-2 control-label">${msg['order.return.column.expressName']}</label>
                            <div class="col-sm-8">
                                <input type="text" id="expressName" class="form-control" name="expressName" data-parsley-required="true"
                                       placeholder="${msg['order.return.column.expressName']}" value="${obj.expressName}" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="expressNo" class="col-sm-2 control-label">${msg['order.return.column.expressNo']}</label>
                            <div class="col-sm-8">
                                <input type="text" id="expressNo" class="form-control" name="expressNo" data-parsley-required="true"
                                       placeholder="${msg['order.return.column.expressNo']}" value="${obj.expressNo}" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="deliveryProvince" class="col-sm-2 control-label">${msg['order.return.column.deliveryProvince']}</label>
                            <div class="col-sm-8">
                                <input type="text" id="deliveryProvince" class="form-control" name="deliveryProvince" data-parsley-required="true"
                                       placeholder="${msg['order.return.column.deliveryProvince']}" value="${obj.deliveryProvince}" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="deliveryCity" class="col-sm-2 control-label">${msg['order.return.column.deliveryCity']}</label>
                            <div class="col-sm-8">
                                <input type="text" id="deliveryCity" class="form-control" name="deliveryCity" data-parsley-required="true"
                                       placeholder="${msg['order.return.column.deliveryCity']}" value="${obj.deliveryCity}" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="deliveryCounty" class="col-sm-2 control-label">${msg['order.return.column.deliveryCounty']}</label>
                            <div class="col-sm-8">
                                <input type="text" id="deliveryCounty" class="form-control" name="deliveryCounty" data-parsley-required="true"
                                       placeholder="${msg['order.return.column.deliveryCounty']}" value="${obj.deliveryCounty}" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="deliveryTown" class="col-sm-2 control-label">${msg['order.return.column.deliveryTown']}</label>
                            <div class="col-sm-8">
                                <input type="text" id="deliveryTown" class="form-control" name="deliveryTown" data-parsley-required="true"
                                       placeholder="${msg['order.return.column.deliveryTown']}" value="${obj.deliveryTown}" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="deliveryAddress" class="col-sm-2 control-label">${msg['order.return.column.deliveryAddress']}</label>
                            <div class="col-sm-8">
                                <input type="text" id="deliveryAddress" class="form-control" name="deliveryAddress" data-parsley-required="true"
                                       placeholder="${msg['order.return.column.deliveryAddress']}" value="${obj.deliveryAddress}" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="deliveryMobile" class="col-sm-2 control-label">${msg['order.return.column.deliveryMobile']}</label>
                            <div class="col-sm-8">
                                <input type="text" id="deliveryMobile" class="form-control" name="deliveryMobile" data-parsley-required="true"
                                       placeholder="${msg['order.return.column.deliveryMobile']}" value="${obj.deliveryMobile}" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="deliveryPhone" class="col-sm-2 control-label">${msg['order.return.column.deliveryPhone']}</label>
                            <div class="col-sm-8">
                                <input type="text" id="deliveryPhone" class="form-control" name="deliveryPhone" data-parsley-required="true"
                                       placeholder="${msg['order.return.column.deliveryPhone']}" value="${obj.deliveryPhone}" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="deliveryPostcode" class="col-sm-2 control-label">${msg['order.return.column.deliveryPostcode']}</label>
                            <div class="col-sm-8">
                                <input type="text" id="deliveryPostcode" class="form-control" name="deliveryPostcode" data-parsley-required="true"
                                       placeholder="${msg['order.return.column.deliveryPostcode']}" value="${obj.deliveryPostcode}" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="beginAt" class="col-sm-2 control-label">${msg['order.return.column.beginAt']}</label>
                            <div class="col-sm-8">
                                <input type="text" id="beginAt" class="form-control" name="beginAt" data-parsley-required="true"
                                       placeholder="${msg['order.return.column.beginAt']}" value="${obj.beginAt}" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="sendAt" class="col-sm-2 control-label">${msg['order.return.column.sendAt']}</label>
                            <div class="col-sm-8">
                                <input type="text" id="sendAt" class="form-control" name="sendAt" data-parsley-required="true"
                                       placeholder="${msg['order.return.column.sendAt']}" value="${obj.sendAt}" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="confirmAt" class="col-sm-2 control-label">${msg['order.return.column.confirmAt']}</label>
                            <div class="col-sm-8">
                                <input type="text" id="confirmAt" class="form-control" name="confirmAt" data-parsley-required="true"
                                       placeholder="${msg['order.return.column.confirmAt']}" value="${obj.confirmAt}" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="status" class="col-sm-2 control-label">${msg['order.return.column.status']}</label>
                            <div class="col-sm-8">
                                <input type="text" id="status" class="form-control" name="status" data-parsley-required="true"
                                       placeholder="${msg['order.return.column.status']}" value="${obj.status}" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="protect" class="col-sm-2 control-label">${msg['order.return.column.protect']}</label>
                            <div class="col-sm-8">
                                <input type="text" id="protect" class="form-control" name="protect" data-parsley-required="true"
                                       placeholder="${msg['order.return.column.protect']}" value="${obj.protect}" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="disabled" class="col-sm-2 control-label">${msg['order.return.column.disabled']}</label>
                            <div class="col-sm-8">
                                <input type="text" id="disabled" class="form-control" name="disabled" data-parsley-required="true"
                                       placeholder="${msg['order.return.column.disabled']}" value="${obj.disabled}" >
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-lg-3"></div>
                <div class="col-lg-6">
                    <div class="form-group text-center">
                        <label></label>

                        <div>
                            <button class="btn btn-primary btn-block btn-lg btn-parsley" data-loading-text="${msg['globals.button.submit.tip']}">${msg['globals.button.submit']}</button>
                        </div>
                    </div>
                </div>
            </form>
        </section>

    </div>
</div>
<script language="JavaScript">
    $(document).ready(function () {
        $('#editForm').ajaxForm({
            dataType: 'json',
            beforeSubmit: function (arr, form, options) {
                form.find("button:submit").button("loading");
            },
            success: function (data, statusText, xhr, form) {
                if (data.code == 0) {
                    Toast.success(data.msg);
                    setTimeout(function () {
                        $("#goBack").trigger("click");
                    }, 1000);
                } else {
                    Toast.error(data.msg);
                }
                form.find("button:submit").button("reset");
            }
        });
    });
</script>
<!--#}#-->